package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 新闻栏目对象 info_category
 * 
 * @author ruoyi
 * @date 2022-12-02
 */
public class InfoCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 栏目id */
    private String categoryid;

    /** 父栏目id */
    @Excel(name = "父栏目id")
    private String parentcategoryid;

    /** 栏目名称 */
    @Excel(name = "栏目名称")
    private String categoryname;

    /** 排序号 */
    @Excel(name = "排序号")
    private Long ordernum;

    /** 新增时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "新增时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    /** 允许删除 */
    @Excel(name = "允许删除")
    private Long allowdelete;

    /** 是否有效 */
    @Excel(name = "是否有效")
    private Long isvalid;

    /** 备注 */
    @Excel(name = "备注")
    private String beizhu;

    public void setCategoryid(String categoryid) 
    {
        this.categoryid = categoryid;
    }

    public String getCategoryid() 
    {
        return categoryid;
    }
    public void setParentcategoryid(String parentcategoryid) 
    {
        this.parentcategoryid = parentcategoryid;
    }

    public String getParentcategoryid() 
    {
        return parentcategoryid;
    }
    public void setCategoryname(String categoryname) 
    {
        this.categoryname = categoryname;
    }

    public String getCategoryname() 
    {
        return categoryname;
    }
    public void setOrdernum(Long ordernum) 
    {
        this.ordernum = ordernum;
    }

    public Long getOrdernum() 
    {
        return ordernum;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }
    public void setAllowdelete(Long allowdelete) 
    {
        this.allowdelete = allowdelete;
    }

    public Long getAllowdelete() 
    {
        return allowdelete;
    }
    public void setIsvalid(Long isvalid) 
    {
        this.isvalid = isvalid;
    }

    public Long getIsvalid() 
    {
        return isvalid;
    }
    public void setBeizhu(String beizhu) 
    {
        this.beizhu = beizhu;
    }

    public String getBeizhu() 
    {
        return beizhu;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryid", getCategoryid())
            .append("parentcategoryid", getParentcategoryid())
            .append("categoryname", getCategoryname())
            .append("ordernum", getOrdernum())
            .append("addtime", getAddtime())
            .append("allowdelete", getAllowdelete())
            .append("isvalid", getIsvalid())
            .append("beizhu", getBeizhu())
            .toString();
    }
}
